package com.bodu.core.entity.result;

import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author Administrator
 */
@Data
public class PageResult implements Serializable {

    private List<Object> list;

    private Integer total;

    public static PageResult builder(List list, Integer total) {
        PageResult result = new PageResult();
        result.setList(list);
        result.setTotal(total);
        return result;
    }
}
